import { Router } from 'express';
import { getStudyRecords, createStudyRecord, getStudyStats } from '../controllers/studyRecordController';
import { auth } from '../middlewares/auth';

const router = Router();

// 获取学习记录列表
router.get('/', auth, getStudyRecords);

// 创建学习记录
router.post('/', auth, createStudyRecord);

// 获取学习统计
router.get('/stats', auth, getStudyStats);

export default router; 